﻿using sMES_Base.service;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using sMES_Base;
using load_applied_acc_to_machine_process;

namespace load_applied_acc_to_machine_process_C
{
    /// <summary>
	/// 服務[load_applied_acc_to_machine_process]
    /// <auth>JingHuang</auth><time>2018/12/30 下午 05:28:15</time>
    /// <description></description>
    /// <list>
    ///     <modify>
    ///         <auth></auth><mantis>0053952</mantis><time></time>
    ///         <description>設備放上模具</description>
    ///     </modify>
    /// </list>
    /// </summary>
    public class load_applied_acc_to_machine_process_C : BaseService
    {
        public load_applied_acc_to_machine_process_C(ServiceInfo _ServiceInfo) : base(_ServiceInfo)
        {
        }

        public override ServiceResponse ExecuteImplement(ServiceRequest ServiceRequest, ServiceResponse ServiceResponse)
        {

            //將dynamic 物件轉換成實體物件
            RequestContent _content = ServiceRequest.GetContent<RequestContent>();

            //取出Utilitiy
            load_applied_acc_to_machine_process_utility _utility = GetUtilities<load_applied_acc_to_machine_process_utility>();

            ServiceResponse.Content = new ResponseContent();
            string message = string.Empty;
            ServiceResponse.Content = _utility.applied_acc_to_machine_process(_content, ref message);
            if(!string.IsNullOrEmpty(message))
            {
                ServiceResponse.Content = message;
            }
            return ServiceResponse;
        }
    }
}
